package com.lyf.mapper.admin;

import com.lyf.pojo.DishFlavor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;
@Mapper
public interface DishFlavorMapper {
    @Select("select * from dish_flavor where dish_id = #{dishId}")
    List<DishFlavor> selectByDishId(Long dishId);

    void insertBatch(List<DishFlavor> flavors);

    void update(DishFlavor dishFlavor);

    void deleteByDishId(Long id);

    void deleteByDishIds(List<Long> ids);
}
